package com.xx.sg.own.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xx.sg.own.entity.ForestSpot;
import com.xx.sg.own.mapper.ForestSpotMapper;
import com.xx.sg.own.service.ForestSpotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ForestSpotServiceImpl extends ServiceImpl<ForestSpotMapper, ForestSpot> implements ForestSpotService {

    @Autowired
    private ForestSpotMapper forestSpotMapper;

    @Override
    public int updateGeometry(String id, String geometry) {
        return forestSpotMapper.updateGeometry(id, geometry);
    }

    @Override
    public List<ForestSpot> checkIntersect(String wkt) {
        return forestSpotMapper.checkIntersect(wkt);
    }
}
